-- GENERATED SPELL FOR [Wandering Spirit] --


function spell0_1532(pUnit, Event) --@Wailing Dead,Self--
pUnit:FullCastSpellOnTarget(7713,pUnit)
pUnit:RegisterEvent('Sorts_1532', 6318, 1)
end

function Sorts_1532(pUnit, Event)
local choix_sorts_1532 = math.random(0, 0)
if choix_sorts_1532 == 0 then
pUnit:RegisterEvent('spell0_1532', 1, 1)
end
end

function mob1532_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1532', math.random(1500, 3000), 1)
end

function mob1532_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1532_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1532_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1532, 1, 'mob1532_Action')
RegisterUnitEvent(1532, 2, 'mob1532_Leave')
RegisterUnitEvent(1532, 3, 'mob1532_Kill')
RegisterUnitEvent(1532, 4, 'mob1532_Die')
